﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AGuang.WebTool {
    /// <summary>
    /// 规范输出,json输出对象
    /// </summary>
    public class JSONOutput {
        /// <summary>
        /// 是否处理成功
        /// </summary>
        public bool successed=true;

        /// <summary>
        /// 信息提示
        /// </summary>
        public String message=String.Empty;

        /// <summary>
        /// 是否登陆
        /// </summary>
        public bool isLogon=true;

        /// <summary>
        /// 是否有权限
        /// </summary>
        public bool hasRight = true;

        /// <summary>
        /// 数据部分
        /// </summary>
        public Object data=null;

        /// <summary>
        /// 标识部分
        /// </summary>
        public String key = String.Empty;

        /// <summary>
        /// 转换为json字符串
        /// </summary>
        public override String ToString() {
            return JSON.Object2Json(this);
        }
    }
}
